@extends('client/layoutIndex')

@section('link')
    <link rel="stylesheet" href="{{ asset('client/css/reset.css') }}">
@stop

@section('content')
    <div class="container">
        <!-- --重置密码-- -->
        <div class="row" style="background:#f5f5f5">
            <div class="col-md-6">
                <div class="reset">
                    <div class="forget-tit">
                        <h4 style="font-weight:bold;">重置密码</h4>
                        <span></span>
                        <img src="{{ asset('client/image/xvxian.png') }}">
                        <span id="msg" style="display: none">
                            @if (count($errors) > 0)
                                @foreach ($errors->all() as $error)
                                    <div style="width: 100%;">
                                        <span style="color: red;display: block;margin: 0px auto;width: 200px;text-align: center;">{{ $error }}</span>
                                    </div>
                                @endforeach
                            @endif
                        </span>
                        <script type="text/javascript">
                            var _msg = $('#msg div span').text();
                            console.log(_msg);
                            if(_msg != ''){
                                layer.msg(_msg);
                            }
                        </script>
                    </div>
                    <div class="reset-form">
                        <form method="post" class="form-horizontal" action="{{ url('client/reset') }}">
                            {{csrf_field()}}
                            <input type="hidden" name="uid" value="{{ $list['id'] }}">
                            <div class="form-group" style="margin:30px;">
                                <label class="col-md-3">请输入新密码：</label>
                                <div class="col-md-4">
                                    <input type="password" name="password" class="form-control" placeholder="请输入新密码">
                                </div>
                                <div class="col-md-2"></div>
                            </div>
                            <div class="form-group" style="margin:30px;">
                                <label class="col-md-3">请再次输入新密码：</label>
                                <div class="col-md-4">
                                    <input type="password" name="d_password" class="form-control" placeholder="请再次输入新密码">
                                </div>
                                <div class="col-md-2"></div>
                            </div>
                            <div class="form-group" style="margin:30px;margin-top:60px;">
                                <div class="col-md-6">
                                    <button type="submit"  class="btn-warning">提&nbsp;&nbsp;&nbsp;&nbsp;交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <!-- --重置密码 end-- -->
    </div>
@stop